package com.letoken.platform.repo.app.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * Le账户-铸币发行,流通,奖励日志
 * </p>
 *
 * @author 作者
 * @since 2023-01-06
 */
@Getter
@Setter
@TableName("app_user_issue_history")
@ApiModel(value = "AppUserIssueHistory对象", description = "Le账户-铸币发行,流通,奖励日志")
public class AppUserIssueHistory extends Model<AppUserIssueHistory> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户编号")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty("交易类型(3发行/4周期流通/5分享奖/6生态建设奖)")
    @TableField("type")
    private Integer type;

    @ApiModelProperty("数量")
    @TableField("amount")
    private BigDecimal amount;

    @ApiModelProperty("新增团队业绩")
    @TableField("new_team_issue")
    private BigDecimal newTeamIssue;

    @ApiModelProperty("个人待流通业绩")
    @TableField("wait_circulation")
    private BigDecimal waitCirculation;

    @ApiModelProperty("加速流通金额")
    @TableField("money")
    private BigDecimal money;

    @ApiModelProperty("操作人id")
    @TableField("operate_user_id")
    private Integer operateUserId;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;
    @ApiModelProperty("uuid")
    @TableField("uuid")
    private String uuid;


    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
